Gestures leaving the overview from a short distance result in an
ugly effect with the panel opacity transitionhaving a fixed duration.
Make this transition have the same duration (although in a hackish
way) so we avoid the ugly effect.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1643>
if (endProgress === 0) {
this._shown = false;
this.emit('hiding');
+ Main.panel.style = 'transition-duration: %dms;'.format(duration);
onComplete = () => this._hideDone();
} else {
onComplete = () => this._showDone();
else
Main.layoutManager.hideOverview();
+ Main.panel.style = null;
+
this._syncGrab();
}